package com.bocai.dahuatech.ui.activity;

import android.content.Intent;
import android.view.View;
import android.widget.LinearLayout;

import com.bocai.dahuatech.Bean.SolutionListBean;
import com.bocai.dahuatech.R;
import com.bocai.dahuatech.base.BaseActivity;

import butterknife.Bind;
import butterknife.ButterKnife;

/**
 * 解决方案二级
 */
public class SolutionSecondaryActivity extends BaseActivity implements View.OnClickListener{
    @Bind(R.id.ll_ipc)
    LinearLayout llIpc;

    @Bind(R.id.ll_hdcvi)
    LinearLayout llHdcvi;
    SolutionListBean.ContentEntity bean;
    @Override
    protected int contentView() {
        return R.layout.activity_solution_secondary;
    }

    @Override
    protected void initView() {
        ButterKnife.bind(this);
        bean= (SolutionListBean.ContentEntity) getIntent().getSerializableExtra("bean");
        initToolbar("解决方案");
        initEvent();
    }

    @Override
    protected void initEvent()
    {
        super.initEvent();
        llIpc.setOnClickListener(this);
        llHdcvi.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId())
        {
            case R.id.ll_ipc:
                Intent intent=new Intent(this,SolutionDetailActivity.class);
                intent.putExtra("type",1);
                intent.putExtra("bean",bean);
                startActivity(intent);
                break;
            case R.id.ll_hdcvi:
                Intent intent1=new Intent(this,SolutionDetailActivity.class);
                intent1.putExtra("type",2);
                intent1.putExtra("bean",bean);
                startActivity(intent1);
                break;
        }
    }
}
